﻿using Marmat.Foundation;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace example
{

    /// <summary>
    /// 加载用户配置文件
    /// </summary>
    class LoadUserSetting : ILoadUserSetting
    {

        private readonly IMainForm mainForm;
        public LoadUserSetting(IMainForm mainForm)
        {
            this.mainForm = mainForm;
        }



        public void ExecuteCommand(string userName)
        {
            // 可在此处修改主窗体的信息
            mainForm.NickName = userName;
        }

        public void Dispose()
        {
        }
    }
}
